﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using KMS.Core.domain.model.alert;

namespace KMS.Web.Views.News
{
    public abstract class AlertViewModel
    {
        private Alert _alert;

        public string DateTime
        {
            get
            {
                return _alert.DateTime.ToString("dd MMM HH:mm");
            }
        }

        public string ProjectName 
        {
            get
            {
                return _alert.Project.Name;
            }
        }

        public AlertViewModel(Alert alert)
        {
            _alert = alert;
        }
    }
}
